<!DOCTYPE html>
<html lang="zh"
	  xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
	<meta charset="utf-8">
	<title>添加学生</title>
	<link rel="stylesheet" th:href="@{/layui/css/layui.css}" href="../../static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" th:href="@{/css/public.css}" href="../../static/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<input type="hidden" class="id" />
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">学校</label>
		<div class="layui-input-block" >
			<select name="xxxxId" class="xxList" lay-filter="xxList"  lay-verify="required" id="xxxxId">
				<option value="">请选择学校</option>
				<!--<option value="1">测试在初中</option>-->
				<!--/*@thymesVar id="xxList" type="java.util.List<com.example.demo.information.entity.School>"*/-->
				<!--/*@thymesVar id="xx" type="com.example.demo.information.entity.School"*/-->
				<option th:each="xx,userStat:${xxList}" th:value="${xx.id}" th:text="${xx.name}"></option>
			</select>
		</div>
	</div>
	<div class="magb15 layui-col-md4 layui-col-xs12">
		<label class="layui-form-label">班级</label>
		<div class="layui-input-block" >
			<select name="bjxxId" class="bjList" lay-filter="bjList" lay-verify="required" id="bjxxId">
				<option value="">请选择班级(先选择学校)</option>
			</select>
		</div>
	</div>
	<input type="hidden" id ="xsId" />
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">学生姓名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input name" lay-verify="required|stuname" placeholder="请输入姓名" required>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">身份证</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input sfz" lay-verify="required|notsfh" placeholder="请输入身份证" required>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">学籍辅号</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input xjfh" lay-verify="required|notsfh" placeholder="请输入学籍辅号" required>
		</div>
	</div>
	<div class="magb15 layui-col-md4 layui-col-xs12">
		<label class="layui-form-label">性别</label>
		<div class="layui-input-block sex"  >
			<input type="radio" name="sex" value="男" title="男" >
			<input type="radio" name="sex" value="女" title="女" >
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addStudent">立即添加</button>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" th:src="@{/layui/layui.js}" src="../../static/layui/layui.js"></script>
<script type="text/javascript" th:src="@{/js/util.js}" src="../../static/js/util.js"></script>
<script type="text/javascript" th:src="@{/js/studentAdd.js}" src="../../static/js/studentAdd.js"></script>
</body>
</html>